package cn.tedu.egmvc1.controller;

import cn.tedu.egmvc1.controller.pojo.dto.EmployeeDTO;
import cn.tedu.egmvc1.controller.pojo.dto.EmployeeDto1;
import cn.tedu.egmvc1.controller.pojo.dto.EmployeeDto2;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class EmployeeController {
    @RequestMapping("/emp/insert")
    @ResponseBody
    public String addEmployee(EmployeeDTO employeeDTO)
    {
        return "添加成功" + employeeDTO.toString();
    }


    @RequestMapping("emp/select")
    @ResponseBody
    public String selectEmployee()
    {
        return "恭喜,查询成功";
    }
    @RequestMapping("/emp/update")
    @ResponseBody

    public String updateEmployee(EmployeeDto1 employeeDto1)
    {
        return "修改成功";
    }

    @RequestMapping("/emp/delete")
    @ResponseBody
    public String deleteEmployee(EmployeeDto2 employeeDto2)
    {
        return "删除成功";
    }



}
